directives.directive('square', ["$rootScope", "tools", "$timeout", "$routeParams", "tmp", function ($rootScope, tools, $timeout, $routeParams, tmp) {
    return {
        restrict: 'E',
        scope: true,
        replace: true,
        link: function (scope, element, attr) {
            $(element).css({
                top: Number(attr.top) + 'px',
                left: Number(attr.left) + 'px',
                width: Number(attr.width) + 'px',
                height: Number(attr.height) + 'px'
            });
        },
        templateUrl: "/trend-new-BI/app/components/common/chartManager/square/squareView.html"
    }
}]);